/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package character_7;

import character_7.jiekou.Flyer;

/**
 *
 * @author Administrator
 */
public class FlyingFish extends Fish implements Flyer{
    public FlyingFish(String name){
        super(name);
    }
    
    @Override
    public void swim(){
        System.out.println("飞鱼游泳");
    }
    
    @Override
    public void fly(){
        System.out.println("飞鱼会飞");
    }
}
